//
//  MyTableViewCell.m
//  CreditManager
//
//  Created by zhl on 2017/8/11.
//  Copyright © 2017年 zhl. All rights reserved.
//

#import "MyTableViewCell.h"

@implementation MyTableViewCell

- (instancetype)initWithCoder:(NSCoder *)coder
{
    self = [super initWithCoder:coder];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.userInteractionEnabled = YES;
        self.accessoryView = nil;
        self.editingAccessoryView = nil;
        self.shouldIndentWhileEditing = NO;
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return self;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    ViewRadius(self.imageName, 35*0.5);
}

+ (instancetype)cellWithTableView:(UITableView *)tableView{
    static NSString *cellID = @"MyTableViewCell";
    MyTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
    if (!cell) {
        cell = [[NSBundle mainBundle]loadNibNamed:cellID owner:self options:nil].lastObject;
    }
    return cell;
}
@end
